<?php

    $listid		= gpc_getStringArray("listid");
    $liststatus	= gpc_getStringArray("liststatus");
    $listorder	= gpc_getStringArray("listorder");
    $modunlename	= gpc_getStringPost("modunlename");
    $id			= gpc_getIntPost("id");


    $countlist = count($listid);

    for ($i = 0; $i < $countlist; $i ++)
    {
    $sql_update = "UPDATE  tblblog SET
    		  iStatus	 = '$liststatus[$i]',
    		  iOrder   ='$listorder[$i]'
    		  WHERE  iId = $listid[$i]";

    $dbsql->query($sql_update);
    }



    $cActions = " Update Status Content $module";
    Insert_Tracking($cActions);

    page_transfer("Update Content Status Success !",$pagetr);

    exit();

?>
